// 所有和【用户标签】相关的请求

import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http"

// 根据分类获取用户标签
export const findUserTagByTypeApi = () => {
    return httpGet('/userTag/getByType')
}

// 获取用户标签数据
export const findUserTagApi = (data?: object) => {
    return httpPost('/userTag/find', data)
}
// 添加用户标签数据
export const addUserTagApi = (data: object) => {
    return httpPost('/userTag/add', data)
}
// 删除用户标签数据
export const deleteUserTagApi = (data: object) => {
    return httpDelete('/userTag/remove', data)
}
// 修改用户标签数据
export const updateUserTagApi = (data: object) => {
    return httpPut('/userTag/update', data)
}
// 获取一个用户标签数据的详情
export const getUserTagByIdApi = (data: object) => {
    return httpGet('/userTag/getById', data)
}